from flask import Blueprint, jsonify, current_app
from flask_jwt import jwt_required, current_identity
from flask_restplus import Resource, Api
from flask_jwt import JWTError
from common.log.log_config import logger
from utils.errors import default_jwt_error_handler
from utils.request_validate import current_schema_instance, request_arg_check, exception_response
from utils.permission import permission_auth
from common.error_code.response import make_success_response, make_no_data_response, make_error_response
from config.cluster_config_new import cluster_client